import pandas as pd
from pandas import DataFrame

datafile = './文本/客运量_1-1.csv' 
datafile2 = './文本/货运量_1-1.csv'

data = pd.DataFrame(pd.read_csv(datafile))
data2 = pd.DataFrame(pd.read_csv(datafile2))

data = data.loc[data['Airport coordinates'] != 'Not found'] #保留地理坐标不为Not found的行
data2 = data2.loc[data2['Airport coordinates'] != 'Not found']

data.to_csv(datafile,encoding = 'utf_8_sig',index = False) #重新保存
data2.to_csv(datafile2,encoding = 'utf_8_sig',index = False)